package com.example.demo.controller;

import com.example.demo.result.Result;
import com.example.demo.service.MessageService;
import com.example.demo.service.WebAssistant;
import com.example.demo.vo.messageDetailVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@RequestMapping("/api/webSearch")
@Tag(name = "联网对话接口")
public class WebSearchController {
    final WebAssistant webAssistant;

    final MessageService messageService;

//    @Operation(summary = "用户使用联网对话时，使用这个接口")
//    @GetMapping("/chat")
//    public Result<messageDetailVO> highChat(@RequestParam(value = "userId")Long userId,
//                                            @RequestParam(value = "message")String message,
//                                            @RequestParam(required = false) Long sessionId){
//        return Result.success(messageService.webResponse(userId,message,sessionId));
//    }
}
